package net.betou.cms.action.member;

import static net.betou.cms.Constants.TPLDIR_CSI;

import javax.servlet.http.HttpServletRequest;

import net.betou.cms.entity.main.CmsSite;
import net.betou.cms.web.CmsUtils;
import net.betou.cms.web.FrontUtils;
import net.betou.common.web.RequestUtils;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginAct{
	public static final String LOGIN_CSI = "tpl.loginCsi";

	/**
	 * 客户端包含
	 * 
	 * @param request
	 * @param model
	 * @return
	 */
	@RequestMapping( value = "/login_csi.jspx" )
	public String csi( HttpServletRequest request, ModelMap model ) {
		CmsSite site = CmsUtils.getSite( request );
		// 将request中所有参数
		model.putAll( RequestUtils.getQueryParams( request ) );
		FrontUtils.frontData( request, model, site );
		return FrontUtils.getTplPath( request, site.getSolutionPath( ), TPLDIR_CSI, LOGIN_CSI );
	}

}
